/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objetosNegocio;

import java.awt.Image;

/**
 *
 * @author QUINTERO
 */
public class Promo {
    private int id;
    private Image image;
    private String url;
    private int click;

    public Promo() {
    }

    public Promo(int id) {
        this.id = id;
    }

    public Promo(int id, Image image, String url, int click) {
        this.id = id;
        this.image = image;
        this.url = url;
        this.click = click;
    }

    public int getClick() {
        return click;
    }

    public void setClick(int click) {
        this.click = click;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Image getImage() {
        return image;
    }

    public void setImage(Image image) {
        this.image = image;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Promo other = (Promo) obj;
        if (this.id != other.id) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 67 * hash + this.id;
        return hash;
    }

    @Override
    public String toString() {
        return "Promo{" + "id=" + id + ", image=" + image + ", url=" + url + ", click=" + click + '}';
    }
}
